package com.hmall.api.cart;

import com.hmall.api.item.dto.ItemDTO;
import com.hmall.api.item.dto.OrderDetailDTO;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Collection;
import java.util.List;

/**
 *
 *  购物车
 * @author makangkang
 * @date 2025/11/9 18:15
 */
@FeignClient(value = "cart-service",path = "/carts")
public interface CartClient {


    /**
     * 批量删除购物车中商品
     * @param ids 购物车条目id集合
     * @return 无返回值
     */
    @ApiOperation("批量删除购物车中商品")
    @ApiImplicitParam(name = "ids", value = "购物车条目id集合")
    @DeleteMapping
    public void deleteCartItemByIds(@RequestParam("ids") List<Long> ids);


}
